package com.loe.test.frag

import android.os.Bundle
import android.util.Log
import com.loe.mvp.BaseFragment
import com.loe.test.R
import kotlinx.android.synthetic.main.fragment_test.*

class TestFragment2 : BaseFragment()
{
    override fun getLayout() = R.layout.fragment_test

    override fun onCreated(savedInstanceState: Bundle?)
    {
        initView()
        initEvent()
    }

    override fun initView()
    {
        textSex.text = "222222222" + Math.random()
    }

    override fun initEvent()
    {
        button.setOnClickListener()
        {
            toast("binding dfdfg水电费")
        }
    }

    override fun onResume()
    {
        Log.d("runtime", "onResume()")
        super.onResume()
    }

    override fun onPause()
    {
        Log.d("runtime", "onPause()")
        super.onPause()
    }
}
